package com.spica.spicaschool.ui.sportMap

import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import com.spica.spicaschool.base.BaseFragment
import com.spica.spicaschool.databinding.FragmentMapDetailBinding

/**
 * 地图重绘界面
 */
class SportMapDetailFragment : BaseFragment<FragmentMapDetailBinding>() {

  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    viewBinding.mapView.onCreate(savedInstanceState)
  }

  override fun setupViewBinding(inflater: LayoutInflater, container: ViewGroup?):
      FragmentMapDetailBinding = FragmentMapDetailBinding.inflate(inflater, container, false)

  override fun init() {

  }

  override fun onResume() {
    super.onResume()
    viewBinding.mapView.onResume()
  }


  override fun onDestroy() {
    super.onDestroy()
    viewBinding.mapView.onDestroy()
  }

  override fun onPause() {
    super.onPause()
    viewBinding.mapView.onPause()
  }


  override fun onLowMemory() {
    super.onLowMemory()
    viewBinding.mapView.onLowMemory()
  }


  override fun onSaveInstanceState(outState: Bundle) {
    super.onSaveInstanceState(outState)
    viewBinding.mapView.onSaveInstanceState(outState)
  }
}